<?php
/**
 * Created by JetBrains PhpStorm.
 * User: admin
 * Date: 19.01.13
 * Time: 15:25
 * To change this template use File | Settings | File Templates.
 */
class Forum_Form_Post_Create extends Zend_Form
{
  public function init()
  {
    $this
      ->setMethod("POST")
      ->setAttrib('name', 'forum_post_create')
      ->setAction(Zend_Controller_Front::getInstance()->getRouter()->assemble(array()));


    $body = new Zend_Form_Element_Textarea('body');
    $body->setLabel('Ваша сообщения:')
      ->setRequired(true);
    $this->addElement($body);

    $submit = new Zend_Form_Element_Submit('submit');
    $submit->setLabel('Отправить');
    $this->addElement($submit);
  }
}